<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'carBasicInfoDetail.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="css/newcar.css">

	</head>

	<body>
		<div id="main">
			<div class="iofn_tit_hei_tit">
				${request.carBasicInfoDetail.brand}${request.carBasicInfoDetail.department}&nbsp;&nbsp;${request.carBasicInfoDetail.carType}
			</div>
			<div class="basic_parameters_tit">
				<ul><li>基本参数</li></ul>
			</div>
			<table class="basic_parameters_content">
				<tr>
					<th>品牌</th><td>${request.carBasicInfoDetail.brand}</td>
					<th>厂商</th><td>${request.carBasicInfoDetail.factoryName }</td>
					<th>厂商指导价</th><td>${request.carBasicInfoDetail.directMoney}万元</td></tr>
				<tr>
					<th>排量</th><td>${request.carBasicInfoDetail.dispalcement}L</td>
					<th>长x宽x高</th><td>${request.carBasicInfoDetail.carSize}</td>
					<th>驱动方式</th><td>${request.carBasicInfoDetail.driveMode}</td></tr>
				<tr>
					<th>车身结构</th><td>${request.carBasicInfoDetail.bodywork }</td>
					<th>变速箱</th><td>${request.carBasicInfoDetail.gearbox}</td>
					<th>发动机</th><td>${request.carBasicInfoDetail.engine}</td></tr>
				<tr>
					<th>最高车速</th><td>${request.carBasicInfoDetail.maxSpeed }km/h</td>
					<th>官方0-100km/h加速</th><td>${request.carBasicInfoDetail.speedTime}s</td>
					<th>工信部综合油耗</th><td><c:if test="${request.carBasicInfoDetail.oilWear !=null}">${request.carBasicInfoDetail.oilWear}L</c:if><c:if test="${request.carBasicInfoDetail.oilWear == null}">工信部未公布</c:if></td></tr>
				<tr>
					<th>燃油标号</th><td>${request.carBasicInfoDetail.fuel }</td>
					<th>助力类型</th><td>${request.carBasicInfoDetail.powerType}</td>
					<th>驻车制动类型</th><td>${request.carBasicInfoDetail.parkingType}</td></tr>
				<tr>
					<th>整车质保</th><td>${request.carBasicInfoDetail.assurance}</td>
					<th>上市日期</th><td><fmt:formatDate value="${request.carBasicInfoDetail.marketTime}" pattern="yyyy年MM月" /></td>
					<th>生产状态</th><td><c:if test="${request.carBasicInfoDetail.status == 0}">停产</c:if><c:if test="${request.carBasicInfoDetail.status == 1}">在产</c:if></td>
				</tr>
			</table>
			<br />
			<div class="descriptionImg">
				<s:iterator var="url" value="#request.imagesUrl">
					<img src="${url}" style="padding-left: 30px;" />
				</s:iterator>
			</div>
		</div>
	</body>
</html>
